package contents.entities;

public class Parent {
    private Integer parentId;
    private String firstName;
    private String lastName;
    private String username;

    public Parent(Integer parentId, String firstName, String lastName, String username) {
        this.parentId = parentId;
        this.firstName = firstName;
        this.lastName = lastName;
        this.username = username;
    }

    public Integer getParentId() {
        return parentId;
    }
    
    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }
    
    public String getUsername() {
        return username;
    }
    
    public String getFullName() {
        return firstName + " " + lastName;
    }

    /*
     * For purpose of web service.
     */
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    /*
     * For purpose of web service.
     */
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    /*
     * For purpose of web service.
     */
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    /*
     * For purpose of web service.
     */
    public void setUsername(String username) {
        this.username = username;
    }
}
